package com.ruoyi.openDoor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.openDoor.mapper.BusinessReserveMapper;
import com.ruoyi.openDoor.domain.BusinessReserve;
import com.ruoyi.openDoor.service.IBusinessReserveService;

/**
 * 商家的包间的预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-06
 */
@Service
public class BusinessReserveServiceImpl implements IBusinessReserveService 
{
    @Autowired
    private BusinessReserveMapper businessReserveMapper;

    /**
     * 查询商家的包间的预约
     * 
     * @param id 商家的包间的预约主键
     * @return 商家的包间的预约
     */
    @Override
    public BusinessReserve selectBusinessReserveById(Long id)
    {
        return businessReserveMapper.selectBusinessReserveById(id);
    }

    /**
     * 查询商家的包间的预约列表
     * 
     * @param businessReserve 商家的包间的预约
     * @return 商家的包间的预约
     */
    @Override
    public List<BusinessReserve> selectBusinessReserveList(BusinessReserve businessReserve)
    {
        return businessReserveMapper.selectBusinessReserveList(businessReserve);
    }

    /**
     * 新增商家的包间的预约
     * 
     * @param businessReserve 商家的包间的预约
     * @return 结果
     */
    @Override
    public int insertBusinessReserve(BusinessReserve businessReserve)
    {
        return businessReserveMapper.insertBusinessReserve(businessReserve);
    }

    /**
     * 修改商家的包间的预约
     * 
     * @param businessReserve 商家的包间的预约
     * @return 结果
     */
    @Override
    public int updateBusinessReserve(BusinessReserve businessReserve)
    {
        return businessReserveMapper.updateBusinessReserve(businessReserve);
    }

    /**
     * 批量删除商家的包间的预约
     * 
     * @param ids 需要删除的商家的包间的预约主键
     * @return 结果
     */
    @Override
    public int deleteBusinessReserveByIds(Long[] ids)
    {
        return businessReserveMapper.deleteBusinessReserveByIds(ids);
    }

    /**
     * 删除商家的包间的预约信息
     * 
     * @param id 商家的包间的预约主键
     * @return 结果
     */
    @Override
    public int deleteBusinessReserveById(Long id)
    {
        return businessReserveMapper.deleteBusinessReserveById(id);
    }
}
